<h1>注册邀请</h1>
<h2>个人资料</h2>
<?php $error = getFlashMsg();
if ($error): ?>
    <div class="errorbox"><?php echo $error; ?></div>
<?php endif; ?>
    
<?php if (empty($_SESSION['user']) || empty($_SESSION['code']) || (md5(md5(base64_encode($_SESSION['user'])))) !=$_SESSION['code']): ?>
        <div class="errorbox">参数不完整，邀请注册失败</div>
<?php else: ?>
            <form action="<?php echo url_for('invite_reg'); ?>" method="post">
                <input type="hidden" value="aa" name="user">
                <input type="hidden" value="bb" name="code">
                <table width="100%" cellspacing="0" cellpadding="0" class="frame">
                    <tbody><tr>
                            <td>
                                <table width="100%" cellspacing="0" cellpadding="10" border="0">
                                    <tbody>
                                        <tr>
                                            <td class="fieldarea">邮箱</td>
                                            <td><input type="text" size="50" value="<?php echo $user->getUsername(); ?>" name="username"></td>
                                        </tr>
                                        <tr>
                                            <td class="fieldarea">密码</td>
                                            <td><input type="text" size="50" value="<?php echo $user->getPassword(); ?>" name="password"></td>
                                        </tr>
                                        <tr>
                                            <td width="150" class="fieldarea">姓名</td>
                                            <td><input type="text" size="25" value="<?php echo $user->getName(); ?>" name="name"></td>
                                        </tr>
                                        <tr>
                                            <td class="fieldarea">QQ(重要)</td>
                                            <td><input type="text" size="25" value="<?php echo $user->getQq(); ?>" name="qq"></td>
                                        </tr>
                                        <tr>
                                            <td class="fieldarea">联系Email(重要)</td>
                                            <td><input type="text" size="50" name="email" value="<?php echo $user->getEmail(); ?>"></td>
                                        </tr>
                                        <tr>
                                            <td class="fieldarea">手机号码(重要)</td>
                                            <td><input type="text" size="25" name="phone" value="<?php echo $user->getPhone(); ?>"></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <p>请确保您填写的邮箱是常用邮箱，可登录查阅邮件。</p>
                <p align="center">
                    <input type="submit" class="button" value="注册帐号">
                </p>
            </form>

<?php endif; ?>
